//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Extensibility
{
    public class CatchErrorsAttribute : ParameterConverterAttribute
    {
        internal override void ConvertImp(ConversionData data)
        {
            if (data.Value is Error && !data.TargetType.IsAssignableFrom(data.Value.GetType()))
                data.Error = data.Value as Error;
        } 
    }
}